import request from '@/utils/request'

// 查询待审核列表
export function listAudit(query) {
  return request({
    url: '/activity/Audit/list',
    method: 'get',
    params: query
  })
}

// 查询商户列表
export function listPublisher() {
  return request({
    url: '/activity/InformationDelivery/publisherList',
    method: 'get'
  })
}

// 查询用户个人信息
export function getUserProfile() {
  return request({
    url: '/system/user/profile',
    method: 'get'
  })
}

// 查询待审核详细
export function getAudit(gpId) {
  return request({
    url: '/activity/Audit/' + gpId,
    method: 'get'
  })
}

// 新增待审核
export function addAudit(data) {
  return request({
    url: '/activity/Audit',
    method: 'post',
    data: data
  })
}

// 修改待审核
export function updateAudit(data) {
  return request({
    url: '/activity/Audit',
    method: 'put',
    data: data
  })
}

// 删除待审核
export function delAudit(gpId) {
  return request({
    url: '/activity/Audit/' + gpId,
    method: 'delete'
  })
}
